package com.example.mapper;

import com.example.bean.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by Renzhiping on 2018/1/17.
 */
public interface UserMapper {

     User getUserById( Long id);

     List<User> getUserList();

     void add(User user);

     void update( @Param("user") User user);

     void delete(Long id);

}
